<link href="<?php echo base_url('assets/css/admin.css'); ?>" rel="stylesheet" type="text/css" />
<?php 
    if( !isset( $pesquisa ) || pesquisaHabilitada( $pesquisa ) ) {
?>
<fieldset class="admin-container form-padrao">
    <legend>Cadastro de Casos de Testes - Pesquisar</legend>
    <form action="<?php echo site_url('admin/casoteste/index'); ?>" method="post">
        <p>
            <!--<label for="nome">Nome: </label>-->
            <input type="text" name="nome" id="nome" placeholder="Pesquise pelo nome do caso de teste" value="<?php echo $this->input->post('nome'); ?>" />
        </p>
        <p>
            <input type="submit" class="botao" name="btnBusca" id="btnBusca" value="Consultar" />
            <span name="btnAdicionar" class="botao" id="btnAdicionar" onclick="location.href='<?php echo site_url('admin/casoteste/editar');?>'" >Adicionar Caso de Teste</span>
        </p>
    </form>
</fieldset>
<?php 
    }
    if (isTestador()){
        include 'casos_testador.php';
    } else {
        include 'todos_casos.php';
    }
?>
